/*
 ============================================================================
 Name		: Jpg2Bitmap.h
 Author	  : ceze
 Version	 :
 Copyright   : FlashBox for ver.Zhongyou(???)
 Description : CJpg2Bitmap declaration
 :  图片转换类:jpg->bmp用于绘图
 ============================================================================
 */

#ifndef JPG2BITMAP_H
#define JPG2BITMAP_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <FBS.H>


// CLASS DECLARATION

/**
 *  CJpg2Bitmap
 * 
 */
class CJpg2Bitmap : public CBase
{
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CJpg2Bitmap( );

	/**
	 * Two-phased constructor.
	 */
	static CJpg2Bitmap* NewL( );

	/**
	 * Two-phased constructor.
	 */
	static CJpg2Bitmap* NewLC( );
	
	/**
	 * 静态转换函数
	 */
	static CFbsBitmap * BitmapFromJpgFile(const TDesC &aFilePath);

private:
	
	/**
	 * Constructor for performing 1st stage construction
	 */
	CJpg2Bitmap( );

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	void ConstructL( );

};

#endif // JPG2BITMAP_H

